const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,

  devServer: {
    client: {
      overlay: false,
    },
    open: true,
    port: 8082,
    proxy: {
      '/api': {
        target: 'http://localhost:8080', //目标源，目标服务器，真实请求地址
        changeOrigin: true, //支持跨域
        pathRewrite: {     //路径重写
          '^/api': '' //选择忽略拦截器里面的内容
        }
      }
    }
  }
})
